package org.example.consumer.controller;

import org.example.consumer.service.RemoteHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
    @Autowired
    RemoteHelloService remoteHelloService;

    @RequestMapping("feignTest")
    public String feignTest() {
        return remoteHelloService.hello();
    }
}